﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace BookStore
{
    internal class Exit
    {
        public static void FrmClose()
        {
            DialogResult r = MessageBox.Show("Exit?", "Warning", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
            if (r == DialogResult.Yes)
            {
                Environment.Exit(0);
            }
            else
            {
                r = DialogResult.Cancel;
            }
        }
    }
}
